<include file="Share:leftmenu" />
<div class="content-right fl">

	<table class="wxtables mgt10">
		<colgroup>
			<col width="10%">
			<col width="10%">
			<col width="10%">
			<col width="30%">
		</colgroup>
		<thead>

		<tr class="po_list">
			<td>编号<span></span></td>
			<td>分类名称<span></span></td>
			<td>操作<span></span></td>
		</tr>
		</thead>
		<tbody>
		<?php foreach($gtype as $k=>$v){?>
		<tr>
			<td><?php echo $v['type_id'];?></td>
			<td><?php echo $v['type_name'];?></td>
			<td>
				<a href="/admin/share/edittype/?id=<?php echo $v['type_id'];?>" class="btn width" title="修改">编辑</a>

				<a href="javascript:del(<?php echo $v['type_id'];?>);" class="btn j-del" title="删除" data-id="2416530">删除</a>
			</td>
		</tr>
		<?php } ?>
		</tbody>
	</table>
</div>

<script>
    function del(id){

        //询问框
        layer.confirm('你确定要删除吗？', {
            btn: ['确定','我再想想'] //按钮
        }, function(){
            var url = "/admin/share/deltype/?id="+id;
            AjaxUrl(url);
        }, function(){


        });



    }

</script>